import React, { Component } from "react";
import { Provider } from "react-redux";
// import { PersistGate } from 'redux-persist/es/integration/react'
import { getAppRoutes } from "../../routes";
//import DevTools from '../DevTools/DevTools'

class Root extends Component {
  render() {
    const { store } = this.props;
    const history = store.history;
    return <Provider store={store}>{getAppRoutes(history)}</Provider>;
  }
}

export default Root;
